<script setup>
import { onLoad } from '@dcloudio/uni-app';
import $store from '@/store';

const userStore = $store('user');

onLoad((options) => {
  console.debug(options);
});

const goLogin = () => {
  userStore.logout();

  uni.redirectTo({
    url: '/pages/module-login/index',
  });
};
</script>

<template>
  <view class="w-[100vw]">
    <button class="w-full mt-[40vh]" @click="goLogin">返回登陆</button>
  </view>
</template>
